<%@ include file="/taglibs.jsp"%>
<head>
    <title><fmt:message key="file-detail-reissue-certificate-practice.form.title"/></title>
    <link rel="stylesheet" type="text/css" href="${ctx}/styles/displaydetail.css" title="default" />
</head>
<table>
		<tr>
		    <td>&nbsp;</td>
		    <td>
		    	<s:url action="listFilePublicAdmin" var="backTolistFilePublicAdminListURL"></s:url>
		    	<s:a href="%{backTolistFilePublicAdminListURL}" >
		    		<img src="${ctx}/images/btn_cancel_link.png">
		    	</s:a>
		    </td>
		    <td>
		    	<s:url action="deleteFilePublicAdministration" var="deleteFilePublicAdminURL">
					<s:param name="id" value="%{id}"></s:param>
					<s:param name="type" value="%{type}"></s:param>
		    	</s:url>
		    	<s:a href="%{deleteFilePublicAdminURL}" onclick="return confirm('Ban co chac muon Xoa Ho so nay khong?');">
		    		<img src="${ctx}/images/btn_delete_link.png">
		    	</s:a>
		    </td>
		    <s:if test="%{fileCapLaiCCHN.received == false}">
			    <td>
			    	<s:url action="receiveFilePublicAdministration" var="receiveFilePublicAdminURL">
						<s:param name="id" value="%{id}"></s:param>
						<s:param name="type" value="%{type}"></s:param>
			    	</s:url>		    
			    	<s:a href="%{receiveFilePublicAdminURL}" >
			    		<img src="${ctx}/images/btn_receipt_link.png"> 
			    	</s:a>
			    </td>
		    </s:if>
		    
		    <td><s:url action="%{'exportForm!exportCCHN_CL.html'}" var="exportVoucherURL">
					<s:param name="formId" value="%{id}"></s:param>
				</s:url>
				<c:if test="${not empty param.id}">
					<s:a href="%{exportVoucherURL}">
						<img src="${ctx}/images/export_word.png">
					</s:a>
				</c:if>
				
				<s:url action="showInformMessage" var="linkInformMessage">
				<s:param name="id" value="%{id}"></s:param>
				<s:param name="type" value="%{type}"></s:param>
			</s:url> <c:if test="${not empty param.id}">
				<s:a href="%{linkInformMessage}">
					<img src="${ctx}/images/btn_send_message_link.png">
				</s:a>
			</c:if></td>
		</tr>
	</table>
<fieldset>
		    <legend><s:text name="online.detailform.label.information"></s:text>:</legend>
		    <div class="container">
				<div class="grid_1"><p><s:text name="filePublicAdmin.ten_lien_he"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.contactName"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
				<div class="grid_1"><p><s:text name="filePublicAdmin.email"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.email"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
			</div> 
		</fieldset>
		<fieldset>
		    <legend><s:text name="online.detailform.label.field.information"></s:text>:</legend>
		    <div class="container">
		    	<div class="grid_1"><p><s:text name="filePublicAdmin.fileCode"></s:text>: </p></div>
			    <div class="grid_2"><p><s:property value="fileCapLaiCCHN.fileCode"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
		    
				<div class="grid_1"><p><s:text name="filePublicAdmin.loai_thu_tuc"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.thu_tuc"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
				<div class="grid_1"><p><s:text name="filePublicAdmin.subject"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.subject"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
				<div class="grid_1"><p><s:text name="filePublicAdmin.ngay_nop"></s:text>: </p></div>
				<div class="grid_2"><p><s:set var="inputDate" value="fileCapLaiCCHN.ngay_nop" scope="request"></s:set><fmt:formatDate value="${inputDate}" pattern="${datePattern}" />&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
			</div>
		</fieldset>
	<fieldset>
	    <legend><s:text name="detailForm.header"></s:text>:</legend>
	    <div class="container">
				<div class="grid_1"><p><s:text name="filePublicAdmin.ho_ten"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.fullname"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.gioi_tinh"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.sex"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.ngay_sinh"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.date_of_birth"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.noi_sinh"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.place_of_birth"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.quoc_tich"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.nationality"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.cmnd"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.idcard"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.cmnd_ngay_cap"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.idcard_date"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.cmnd_noi_cap"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.idcard_location"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.diachi_thuongtru"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.address"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.van_bang"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.certificate"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.old_cer_content"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.old_cer_content"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.old_cer_date"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.old_cer_date"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.new_cer_content"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.new_cer_content"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>

				<div class="grid_1"><p><s:text name="filePublicAdmin.ten_lien_he"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapCCMGBDS.contactName"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
				
				<div class="grid_1"><p><s:text name="filePublicAdmin.reason_renew_cer"></s:text>: </p></div>
				<div class="grid_2"><p><s:property value="fileCapLaiCCHN.reason_renew_cer"/>&nbsp;</p></div>
				<div class="clear">&nbsp;</div>
		</div>
	</fieldset>
	<fieldset>
		<legend><s:text name="online.form.attachfiletable.title"></s:text>:</legend>
	 	<s:set name="lstFileAttachments" value="fileCapLaiCCHN.fileAttachments" scope="request"/>
			    
			    <display:table name="lstFileAttachments" class="table" id="attachFileDetail" partialList="false">
				    <display:column titleKey="attachFile.attachFileName">
				    	<a href="${attachFileDetail.url}">${attachFileDetail.fileName}</a>
				    </display:column>
				</display:table>
	</fieldset>		
	
	<c:if test="${not empty fileCapLaiCCHN.notify_message}">
		<fieldset>
			<legend><s:text name="online.form.notify"></s:text>:</legend>
			<s:property value="%{fileCapLaiCCHN.notify_message}"/>	    
		</fieldset>
	</c:if>
	
	<table>
		<tr>
		    <td>&nbsp;</td>
		    <td>
		    	<s:url action="listFilePublicAdmin" var="backTolistFilePublicAdminListURL"></s:url>
		    	<s:a href="%{backTolistFilePublicAdminListURL}" >
		    		<img src="${ctx}/images/btn_cancel_link.png">
		    	</s:a>
		    </td>
		    <td>
		    	<s:url action="deleteFilePublicAdministration" var="deleteFilePublicAdminURL">
					<s:param name="id" value="%{id}"></s:param>
					<s:param name="type" value="%{type}"></s:param>
		    	</s:url>
		    	<s:a href="%{deleteFilePublicAdminURL}" onclick="return confirm('Ban co chac muon Xoa Ho so nay khong?');">
		    		<img src="${ctx}/images/btn_delete_link.png">
		    	</s:a>
		    </td>
		    <s:if test="%{fileCapLaiCCHN.received == false}">
			    <td>
			    	<s:url action="receiveFilePublicAdministration" var="receiveFilePublicAdminURL">
						<s:param name="id" value="%{id}"></s:param>
						<s:param name="type" value="%{type}"></s:param>
			    	</s:url>		    
			    	<s:a href="%{receiveFilePublicAdminURL}" >
			    		<img src="${ctx}/images/btn_receipt_link.png"> 
			    	</s:a>
			    </td>
		    </s:if>
		    
		    <td><s:url action="%{'exportForm!exportCCHN_CL.html'}" var="exportVoucherURL">
					<s:param name="formId" value="%{id}"></s:param>
				</s:url>
				<c:if test="${not empty param.id}">
					<s:a href="%{exportVoucherURL}">
						<img src="${ctx}/images/export_word.png">
					</s:a>
				</c:if>
				
				<s:url action="showInformMessage" var="linkInformMessage">
				<s:param name="id" value="%{id}"></s:param>
				<s:param name="type" value="%{type}"></s:param>
			</s:url> <c:if test="${not empty param.id}">
				<s:a href="%{linkInformMessage}">
					<img src="${ctx}/images/btn_send_message_link.png">
				</s:a>
			</c:if></td>
		</tr>
	</table>





